import { Component, ViewChild } from '@angular/core';
import { IonicPage, Platform, NavController } from 'ionic-angular';

import {MyApp} from '../../app/app.component'

@IonicPage()
@Component({
  selector: 'page-main',
  templateUrl: 'main.html'
})
export class MainPage {

  constructor(
    public navCtrl: NavController,
    public myapp:MyApp) {}

  openSearch(){
    this.myapp.openPage({ component: 'SearchPage' });
  }
}
